package jdl.tokenization;

public class Token {
	private String content;
	private TokenType tokenType;

	public Token(String content, TokenType tokenType) {
		if (content == null || content.isEmpty()) {
			throw new IllegalArgumentException("content is null or empty.");
		}
		this.content = content;
		this.tokenType = tokenType;
	}

	public String getContent() {
		return content;
	}

	public TokenType getTokenType() {
		return tokenType;
	}
}
